package com.hello.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hello.sky.model.dto.SetmealDTO;
import com.hello.sky.model.dto.SetmealPageQueryDTO;
import com.hello.sky.model.entity.Setmeal;
import com.hello.sky.model.entity.SetmealDish;
import com.hello.sky.model.vo.SetmealVO;
import com.hello.sky.result.PageResult;

import java.util.List;

/**
 * <p>
 * 套餐 服务类
 * </p>
 *
 * @author D
 * @since 2024-05-06
 */
public interface SetmealService extends IService<Setmeal> {

    void addSetmeal(SetmealDTO dto);

    PageResult getPage(SetmealPageQueryDTO dto);

    SetmealVO getSetmealByIdResVo(Long id);

    void updateSetmealWithDishAndCategory(SetmealDTO dto);

    void updateSetmealStatus(Long id, Integer status);

    void delSetmeaByIds(List<Long> ids);

    List<SetmealVO> getSetmealByCategoryIdResVo(Integer id);

    List<SetmealDish> getSetmealDishBySetmealId(Long setmealId);
}
